{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "week_dict = {\n",
    "    \"周一\": 0, \"周二\": 1, \"周三\": 2, \"周四\": 3, \"周五\": 4, \"周六\": 5, \"周日\": 6\n",
    "}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "outputs": [
    {
     "data": {
      "text/plain": "0"
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "week_dict['周一']"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "outputs": [
    {
     "data": {
      "text/plain": "0"
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "week_dict.get('周一', -1)"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "outputs": [],
   "source": [
    "from task_init import get_city_task_list, get_his_task_list"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "outputs": [
    {
     "data": {
      "text/plain": "[{'city_id': 57687, 'city_name': '长沙'},\n {'city_id': 57773, 'city_name': '湘潭'},\n {'city_id': 57780, 'city_name': '株洲'},\n {'city_id': 60711, 'city_name': '湘乡'}]"
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "get_city_task_list()"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "outputs": [
    {
     "data": {
      "text/plain": "[{'city_id': 57687, 'city_name': '长沙', 'year': 2022, 'month': 2},\n {'city_id': 57773, 'city_name': '湘潭', 'year': 2021, 'month': 7},\n {'city_id': 57773, 'city_name': '湘潭', 'year': 2021, 'month': 8},\n {'city_id': 57773, 'city_name': '湘潭', 'year': 2021, 'month': 9},\n {'city_id': 57773, 'city_name': '湘潭', 'year': 2021, 'month': 10},\n {'city_id': 57773, 'city_name': '湘潭', 'year': 2021, 'month': 11},\n {'city_id': 57773, 'city_name': '湘潭', 'year': 2021, 'month': 12},\n {'city_id': 57773, 'city_name': '湘潭', 'year': 2022, 'month': 1},\n {'city_id': 57773, 'city_name': '湘潭', 'year': 2022, 'month': 2},\n {'city_id': 57780, 'city_name': '株洲', 'year': 2021, 'month': 9},\n {'city_id': 57780, 'city_name': '株洲', 'year': 2021, 'month': 10},\n {'city_id': 57780, 'city_name': '株洲', 'year': 2021, 'month': 11},\n {'city_id': 57780, 'city_name': '株洲', 'year': 2021, 'month': 12},\n {'city_id': 57780, 'city_name': '株洲', 'year': 2022, 'month': 1},\n {'city_id': 57780, 'city_name': '株洲', 'year': 2022, 'month': 2},\n {'city_id': 60711, 'city_name': '湘乡', 'year': 2021, 'month': 7},\n {'city_id': 60711, 'city_name': '湘乡', 'year': 2021, 'month': 8},\n {'city_id': 60711, 'city_name': '湘乡', 'year': 2021, 'month': 9},\n {'city_id': 60711, 'city_name': '湘乡', 'year': 2021, 'month': 10},\n {'city_id': 60711, 'city_name': '湘乡', 'year': 2021, 'month': 11},\n {'city_id': 60711, 'city_name': '湘乡', 'year': 2021, 'month': 12},\n {'city_id': 60711, 'city_name': '湘乡', 'year': 2022, 'month': 1},\n {'city_id': 60711, 'city_name': '湘乡', 'year': 2022, 'month': 2}]"
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "get_his_task_list()"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "outputs": [],
   "source": [],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}